package com.fei.cloudserviceinterface.service.fallback;

import com.fei.cloudserviceinterface.domain.User;
import com.fei.cloudserviceinterface.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceFallback implements UserService {

    @Override
    public User getUserById(Integer userId) {
        User user = new User();
        user.setId(userId);
        user.setAge(0);
        user.setUserName("服务降级");
        return user;
    }

}
